const arr = [
  { id: 1001, name: 'a' },
  { id: 1002, name: 'b' },
  { id: 1003, name: 'c' },
  { id: 1004, name: 'd' },
  { id: 1005, name: 'e' },
  { id: 1006, name: 'f' },
  { id: 1007, name: 'g' },
  { id: 1008, name: 'h' },
  { id: 1009, name: 'i' }
]

const obj = {
  1001: { id: 1001, name: 'a' },
  1002: { id: 1002, name: 'b' },
  1003: { id: 1003, name: 'c' },
  1004: { id: 1004, name: 'd' },
  1005: { id: 1005, name: 'e' },
  1006: { id: 1006, name: 'f' },
  1007: { id: 1007, name: 'g' },
  1008: { id: 1008, name: 'h' },
  1009: { id: 1009, name: 'i' }
}
